#include "game.h"

SCharacter::SCharacter()
{ /* do nothing */ };

SCharacter::SCharacter( CHARACTER_RACE _CharacterRace, CONTROL_TYPE _ControlType )
{
	CharacterRace	= _CharacterRace;
	ControlType		= _ControlType;
};

void SCharacter::Init( CHARACTER_RACE _CharacterRace, CONTROL_TYPE _ControlType )
{
	ControlType		= _ControlType;

	switch( CharacterRace )
	{
	case RACE_HUMAN		: MaxPoints.HP = 100;	MaxPoints.MP = 50;	MaxPoints.XP = 100; break;
	case RACE_DWARF		: MaxPoints.HP = 150;	MaxPoints.MP = 20;	MaxPoints.XP = 100; break;
	case RACE_ELF		: MaxPoints.HP = 90;	MaxPoints.MP = 80;	MaxPoints.XP = 100; break;
	case RACE_DRAGON	: MaxPoints.HP = 10000;	MaxPoints.MP = 200;	MaxPoints.XP = 1000; break;
	case RACE_UNDEAD	: MaxPoints.HP = 80;	MaxPoints.MP = 10;	MaxPoints.XP = 80; break;
	case RACE_INVALID	:
	default:
		MaxPoints.HP = 9999; MaxPoints.MP = 9999; MaxPoints.XP = 9999;
		break;
	}
	CurrentPoints	= MaxPoints;
	CharacterRace	= _CharacterRace;
};

